//
//  WCAddIncludeDirectoryViewController.m
//  WabbitCode
//
//  Created by William Towe on 4/13/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "WCAddIncludeDirectoryViewController.h"
#import "WCAppController.h"
#import "WCMacros.h"


@implementation WCAddIncludeDirectoryViewController
- (id)init {
	if (!(self = [super initWithNibName:@"WCAddIncludeDirectoryAccessoryView" bundle:nil]))
		return nil;
	
	_recursivelyAddSubdirectories = NSUserDefaultsBoolForKey(kWCPrefsNewIncludeDirectoryRecursivelyAddSubdirectoriesKey);
	
	return self;
}

- (void)dealloc {
	NSSetUserDefaultsBoolForKey(_recursivelyAddSubdirectories, kWCPrefsNewIncludeDirectoryRecursivelyAddSubdirectoriesKey);
	[super dealloc];
}

@synthesize recursivelyAddSubdirectories=_recursivelyAddSubdirectories;

+ (WCAddIncludeDirectoryViewController *)addIncludeDirectoryViewController; {
	return [[[[self class] alloc] init] autorelease];
}
@end
